package com.gsit.omega.ea.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import com.gsit.omega.ea.domain.Address;
import com.gsit.omega.ea.utils.RepresentativeType;

import javax.persistence.Enumerated;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;

@RooJavaBean
@RooToString
@RooEntity
public class Representative {

	@NotNull
	private String name;

	@NotNull
	private String role;

	@NotNull
	private String contectTimeRange;

	@NotNull
	private String primaryEmail;

    private String secondaryEmail;

    @ManyToOne
    private Address address;
    
    @Enumerated
    private RepresentativeType representativeType; 
}
